//
//  ActivityTableViewCell.m
//  ZAKER
//
//  Created by dllo on 15/8/29.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "ActivityTableViewCell.h"

@implementation ActivityTableViewCell

-(void)dealloc
{
    
    [_leftMyImage release];
    [_leftTitleLabel release];
    
    [super dealloc];
    
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        
        self.leftMyImage = [[[UIImageView alloc]init] autorelease];
        _leftMyImage.layer.masksToBounds = YES;
        _leftMyImage.layer.cornerRadius = 5;
        [self.contentView addSubview:_leftMyImage];
        
        
        self.leftTitleLabel = [[[UILabel alloc]init] autorelease];
        _leftTitleLabel.font = [UIFont systemFontOfSize:14];
        _leftTitleLabel.numberOfLines = 0;
        _leftTitleLabel.textAlignment = 1;
        _leftTitleLabel.alpha = 0.8;
        [self.contentView addSubview:_leftTitleLabel];
        
    }
    
    return self;
    
}


-(void)layoutSubviews
{
    [super layoutSubviews];
    
    self.leftMyImage.frame = CGRectMake(15 * myWidth, 10 * myHeight, (self.contentView.frame.size.width - 90 * myWidth) , 150 * myHeight);
    
    self.leftTitleLabel.frame = CGRectMake((self.contentView.frame.size.width - 60 * myWidth), 10 * myHeight, 40 * myWidth , 150 * myHeight);
    
}

- (void)awakeFromNib
{
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    
    [super setSelected:selected animated:animated];

}

@end
